package com.neusmart.tongrentang.model;

import android.content.Context;

/**
 * Image Declare
 * <p/>
 * roy
 */
public class Emoji {

    //
    private String title;
    //
    private String code;
    //
    private String fileName;
    //
    private String shortName;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public int getImageResId(Context context){
        return context.getResources().getIdentifier(shortName, "mipmap",
                context.getPackageName());
    }
}
